package cate.game.pvp.pointrace.handler;

import cate.game.table.TableManager;

import java.util.Objects;
import java.util.function.Supplier;

public class BothPointRaceExcelQueryOperation implements PointRaceExcelQueryOperation {

    private final TableManager tableManager;

    public BothPointRaceExcelQueryOperation(Supplier<TableManager> tableManagerSupplier) {
        this.tableManager = Objects.requireNonNull(tableManagerSupplier.get());
    }

    @Override
    public String getRankDayRwd(int rank) {
        return this.tableManager.pointRace.rewardDay.getReward(rank);
    }

    @Override
    public String getRankSeasonRwd(int rank) {
        return tableManager.pointRace.rankSeason.getReward(rank);
    }
}

